package com.guslegend.Class01_ioc;




/**
* @author: guslegend
* @description: 准备测试IOC
* @create: 2025-04-27 09:06
**/
public class HappyPlay {

    public void play(){
        System.out.println("玩的好开心~~~");
    }

    private String name;
    public String getName() {   return name;    }
    //必须配置set方法,属性设置,ioc容器是通过set方法调用,进行属性赋值!!!
    public void setName(String name) {
        this.name = name;
    }

    //引用新组件
    private HappyTime happyTime;
    public HappyTime getHappyTime() {
        return happyTime;
    }
    public void setHappyTime(HappyTime happyTime) {
        this.happyTime = happyTime;
    }
}
